package admin

import (
	"github.com/gin-gonic/gin"
	"jwgin/middleware"
)

type BaseRouter struct{}

func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	baseRouter := Router.Group("admin")
	new(Login).Routers(baseRouter)
	baseRouter.Use(middleware.Jwt())
	new(route).Routers(baseRouter)
	baseRouter.Use(middleware.RBAC())
	new(rabcapi).Routers(baseRouter)
	new(rabcweb).Routers(baseRouter)
	new(rabcrole).Routers(baseRouter)
	new(AdminUser).Routers(baseRouter)
	return baseRouter
}
